<script type="text/javascript">
	$(document).ready(function () {
		$(".category-menu").on('click', function () {
			$(this).hasClass("expanded") ? $(this).removeClass("expanded") : $(this).addClass("expanded")
		})		
		var d = $(".m-navItems"),
		u = d.find("div.selected");
		u.index() > 3 ? d.parent()[0].scrollLeft=u[0].offsetLeft-u.width()/2 : "";
	});
</script>	<div class="view" id="fm">
											                										
<input type="hidden" name="page" value="2" class="postInfo"/>
<script type="text/javascript">
	$(function () {
		//图片延时加载
		$(".lazy").lazyload({
			effect: "fadeIn"

		});
	});
</script>
	</div>
	<!--加载更多开始-->
	<!-- <div class="load-more" id="main_list">
		<span class="loader"></span>
		<em class="loader-text">正在加载更多</em>
	</div> -->
	<!--加载更多结束-->
</div>
<!--底部浮动开始-->
<style type="text/css">.goto_fatie_box{bottom: 75px;}</style>
<div class="goto_fatie_box">
			<a href="javascript:void(0);"  onclick="clickTongji('3', 'http://m.8264.com/forumpost-step1-17', '4')"><img src="picture/faiteicon.png"/></a>
		<a href="http://m.8264.com/forumpost-step1-12"><img src="picture/qiuzhuicon.png"/></a>
	<a href="javascript:void(0);" class="goto"><img src="picture/goto.png"/></a>
</div>
<script type="text/javascript">
	$(".goto").click(function(){
		var dcm = 'forum_thread_show';
		var top = dcm == 'forum_thread_show' ? $('header').height() : 0;
		$('body,html').animate({scrollTop:top},300);
		return false;
	});
</script>
<!--底部浮动结束-->
<script type="text/javascript">
	$(function () {
		$('#main_list').infinitus({
            trigger: function(done) {
				var nextpage = Number($(".postInfo").val());
				if(isNaN(nextpage)){
					nextpage = 0;
				}
                if(nextpage>1){
					var url = 'http://m.8264.com/index.php?d=forum&c=home&m=ajaxThreadHotMore';
					url = decodeURI(url);
					$.post(url, {page:nextpage}, function (data) {
						$("#fm").find(".postInfo").remove();
						$("#fm").append(data);
						done();
						if ($(".postInfo").length == 0) {
							//没有更多
							$("#main_list .loader").hide();
							$("#main_list .loader-text").text('没有更多');
						}
					});
                }else{
                    //没有更多
					$("#main_list .loader").hide();
					$("#main_list .loader-text").text('没有更多');
                }
            },
            onStart: function() {},
            onEnd: function() {}
        });
	});
</script>
<style type="text/css">
.footer-new{position:relative}.footer-new .footer-usr{position:relative;border-top:1px solid #e5e5e5;background-color:#f6f6f6;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;height:36px}.footer-new .footer-usr a{font-size:12px;color:#585858;padding:8px 14px;display:block}.footer-new .footer-usr .goto-binding{color:#ff7038}.footer-new .footer-usr .pipe-line{position:relative}.footer-new .footer-usr .pipe-line:after{content:"";position:absolute;width:0;height:10px;border-left:1px solid #949494;right:0;top:11px}.footer-new .footer-usr .go-top{background:url() no-repeat 0 50%;background-size:auto 14px;height:36px;padding-left:18px;position:absolute;right:0;display:flex;align-items:center}.footer-new .fbc{text-align:center;padding:12px 0 15px;background-color:#f6f6f6;border-top:1px solid #e5e5e5}.footer-new .fbc a{font-size:14px;color:#737373;padding:0 4px}.footer-new .fbc p{font-size:10px;color:#9b9b9b;margin:4px 0 0}.footer-new a.retind{background:url() center center no-repeat;background-size:12px auto;left:0;display:block;position:absolute;text-indent:-9999em;width:36px;height:36px;bottom:16px}
</style>
<footer class="footer-new" >
	<div class="footer-usr">
		
</footer>
<!--提示框-->
<div style="display:none;" id="common_msg_tip" class="common-msg-tip"></div>
<div style="display:none;" id="common_wait_tip" class="submit-loader"></div>
<!--提示框 end-->


<div style="display:none;">
<style type="text/css">
	.side-fixed{position:fixed;bottom:0;width:100%;z-index:999;}
	.side-fixed img{width:100%;}
	.side-fixed .side-close{
		background-size:auto 20px;
		top: -10px; right: 0px;
		z-index:10}
	@media (max-width: 330px){
		.hide-in-320{
			display: none;
		}
	}
</style>

</div>


</body>
</html>

<script type="text/javascript">
$(function (){
	//图片延时加载
	$(".lazy").lazyload({effect:"fadeIn"});

	//返回顶部
	$(".go-top").click(function(){
		var dcm = '__';
		var top = dcm == 'forum_thread_show' ? $('header').height() : 0;
		$('body,html').animate({scrollTop:top},300);
		return false;
	});

	
	$('.adv-app-close').click(function(){
		$(this).parent().remove();
		$.cookie('closeAdvApp', "1", {expires: 0.17, "path":"/"});
	});

	//退出登录
	$('#footer_logout').click(function(){
		$.post ('http://m.8264.com/index.php?d=member&c=logging&m=doLogout&formhash=87fe2fe9','',function(data) {
			location.href = data.url;
		},"json");
	});
	/*
	var dcm = '__';
	if ((dcm == 'portal_article_show' || dcm == 'forum_thread_show') && navigator.userAgent.match('MicroMessenger')) {
		var id = dcm == 'portal_article_show' ? '' : '';
		var postData = 'dcm='+dcm+'&id='+id;
		$.post ('http://m.8264.com/index.php?d=system&c=task&m=ajaxSetWeixinView',postData,function(data) {
		},"json");
	}
	*/

});

//点击统计
function clickTongji(type, url, relateId) {

	var uid = '';
	var postData = 'type='+type;
	$.post ('http://m.8264.com/index.php?d=system&c=task&m=ajaxSetOwnTongji',postData,function(data) {

		//没登录，跳到登录界面，自有变量统计
		if (relateId && !uid) {
			var postData = 'type='+relateId;
			$.post ('http://m.8264.com/index.php?d=system&c=task&m=ajaxSetOwnTongji',postData,function(data) {
				if (url != undefined) {
					window.location.href = url;
				}
			},"json");
		} else {
			if (url != undefined) {
				window.location.href = url;
			}
		}

	},"json");
}

//在外链接点击统计
function wanClickTongji(type, url, newwindow) {
	if (url != undefined) {
		url += '?utmsource=p15007785&from='+type;
		if(newwindow == 1){
			window.open(url);
		}else{
			window.location.href = url;
		}
	}
}
</script>
